package com.tinem.platform.module.starter.sdk.config;

import com.tinem.platform.module.starter.sdk.core.TokenManager;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author fzh
 * @version v1
 * @program: platform
 * @className OAuth2Config
 * @description TODO
 * @site 
 * @company 
 * @create 2020-09-04 15:03
 */
@Data
@Configuration
public class OAuth2Config {
    @Value("${platform.auth.tokeUrl}")
    String oauthTokenUrl;
    @Value("${platform.auth.clientId}")
    String clientId;
    @Value("${platform.auth.clientSecret}")
    String clientSecret;

    @Bean
    public TokenManager tokenManager(){
        return new TokenManager();
    }
}
